<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Login Fails</title>
    </h:head>
    <link rel="stylesheet" href="css/style.css" type="text/css"/>
    <script type="text/javascript">
    function logout()
    {
        var response =confirm('Are you sure you wanna logout?');
    if(response)
        alert("Ban da logout thanh cong")
    }
    </script>
    <h:body>
        <h:form>
            <div id="container">

                <div id="banner">
                    <h1 >Shopping Cart</h1>
                     <p> <h:outputText value="Wellcom :#{beanProduct.us.userName}"/></p>
                </div>
                <div class="menu-nav">
                    <ul>
                        <li><a href="index.xhtml">Home</a></li>
                        <li><h:commandLink action="#{beanProduct.login}" value="Login" /></li>
                        <li><h:commandLink action="#{beanProduct.checkLogOut}" value="LogOut" onclick="logout()" /></li>
                        <li><h:commandLink action="#{beanProduct.showCart}" value="Show Cart" /></li>
                    </ul>
                </div>
                <div id="mesager">
                    <h1> UserName or Password fails  !!!</h1>
                </div>
                <div id="footed"></div>
            </div>
        </h:form>
    </h:body>
</html>

